package lg.minecraft.plugin.library;

import lg.minecraft.plugin.library.config.message.LGPluginMessage;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.logging.Level;

@Getter
public class LGPlugin extends JavaPlugin {

    private final LGPluginMessage LGMessage;

    public LGPlugin() {
        super();
        this.LGMessage = new LGPluginMessage(this);
    }

    public void info(String message, Object... object) {
        getLogger().log(Level.INFO, message, object);
    }

    public void info(String message, Throwable thrown) {
        getLogger().log(Level.INFO, message, thrown);
    }

    public void warning(String message, Object... object) {
        getLogger().log(Level.WARNING, message, object);
    }

    public void warning(String message, Throwable thrown) {
        getLogger().log(Level.INFO, message, thrown);
    }

    public void severe(String message, Object... object) {
        getLogger().log(Level.SEVERE, message, object);
    }

    public void severe(String message, Throwable thrown) {
        getLogger().log(Level.INFO, message, thrown);
    }

}
